<html>

<head>
  <%- include('../partials/admin-head') %>
</head>

<body>

<%- include('../partials/panel-header', {active: 'settings'}) %>

<main>
  <form action="/settings" method="post">
    <fieldset>
      <label for="title">Site title</label>
      <input type="text" id="title" name="title" value="<%- config.title %>"/>
      <label for="description">Site description</label>
      <input type="text" id="description"  name="description" value="<%- config.description %>"/>
      <label for="author">Author</label>
      <input type="text" id="author" name="author" value="<%- config.author %>"/>
      <label for="theme">Theme</label>
      <input type="text" id="theme" name="theme" value="<%- config.theme %>"/>
      <label for="dateFormat">Date format</label>
      <input type="text" id="dateFormat" name="dateFormat" value="<%- config.dateFormat %>"/>
      <label>
        <input type="checkbox" id="commentsRequireApproval" name="commentsRequireApproval" <% if (config.commentsRequireApproval) { %>checked <% } else { %> unchecked <% } %>/>
        Comments require approval
      </label>
      <br>
      <input type="submit" value="Update Settings" />
      <p><%- locals.message ? message : "" %></p>
    </div>
    </fieldset>
  </form>
</main>

</body>

</html>